//
//  TPShare.h
//  Tiipvi
//
//  Created by xiaowuxiaowu on 2017/4/26.
//  Copyright © 2017年 xiaowuxiaowu. All rights reserved.
//


#import <Foundation/Foundation.h>
#import <OpenShare/OpenShare.h>

extern NSString *const QQ_key;
extern NSString *const Weixin_key;
extern NSString *const WxAppSecret;
typedef NS_ENUM(NSUInteger, TPShareType) {
    
    TPShareTypeQQFriend = 909,
    TPShareTypeQQtimeline,
    TPShareTypeWXFriend,
    TPShareTypeWXtimeline,
};
#import <Foundation/Foundation.h>

@interface TPShare : NSObject


/**
 *  注册分享   到AppDelegate中的application:didFinishLaunchingWithOptions:
 */
+(void)registWithShare;

/**
 *  回调   //如果OpenShare能处理这个回调，就调用block中的方法，如果不能处理，就交给其他（比如支付宝）。
 *
 *   url
 *
 *  @return YES
 */
+(BOOL)handleOpenURL:(NSURL *)url;

+(BOOL)isWeixinInstalled;


///不说，你都懂
+(void)showTitle:(NSString *)title desc:(NSString *)desc image:(id )image link:(NSString *)link  type:(TPShareType)type Success:(shareSuccess)success Fail:(shareFail)fail;

@end
